package org.csu.laboratoryequipment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("history")
@AllArgsConstructor
@NoArgsConstructor
public class History implements Serializable {
    private static final long serialVersionUID = 2159986388155310067L;
    /**
     * 历史搜索记录主键id值
     */
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    /**
     * 用户名
     */
    @TableField(value = "userid")
    private String userId;

    /**
     * 历史搜索种子关键字
     */
    @TableField(value = "history_word")
    private String historyWord;

    /**
     * 种子关键字搜索评分
     */
    @TableField(value = "score")
    private double score;

    /**
     * 种子关键字平均竞争度
     */
    @TableField(value = "com_avg")
    private double comAvg;

    /**
     * 种子关键字搜索时间
     */
    @TableField(value = "time")
    private Date time ;

}
